# **********************************************************************
#
# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************

# Ice version 3.3.0
# Generated from file `life_cycle.ice'

import Ice, IcePy, __builtin__

# Start of module AcornLifeCycle
_M_AcornLifeCycle = Ice.openModule('AcornLifeCycle')
__name__ = 'AcornLifeCycle'

if not _M_AcornLifeCycle.__dict__.has_key('LifeCycle'):
    _M_AcornLifeCycle.LifeCycle = Ice.createTempClass()
    class LifeCycle(Ice.Object):
        def __init__(self):
            if __builtin__.type(self) == _M_AcornLifeCycle.LifeCycle:
                raise RuntimeError('AcornLifeCycle.LifeCycle is an abstract class')

        def ice_ids(self, current=None):
            return ('::AcornLifeCycle::LifeCycle', '::Ice::Object')

        def ice_id(self, current=None):
            return '::AcornLifeCycle::LifeCycle'

        def ice_staticId():
            return '::AcornLifeCycle::LifeCycle'
        ice_staticId = staticmethod(ice_staticId)

        #
        # Operation signatures.
        #
        # def start(self, current=None):
        # def stop(self, current=None):
        # def terminate(self, current=None):

        def __str__(self):
            return IcePy.stringify(self, _M_AcornLifeCycle._t_LifeCycle)

        __repr__ = __str__

    _M_AcornLifeCycle.LifeCyclePrx = Ice.createTempClass()
    class LifeCyclePrx(Ice.ObjectPrx):

        def start(self, _ctx=None):
            return _M_AcornLifeCycle.LifeCycle._op_start.invoke(self, ((), _ctx))

        def stop(self, _ctx=None):
            return _M_AcornLifeCycle.LifeCycle._op_stop.invoke(self, ((), _ctx))

        def terminate(self, _ctx=None):
            return _M_AcornLifeCycle.LifeCycle._op_terminate.invoke(self, ((), _ctx))

        def checkedCast(proxy, facetOrCtx=None, _ctx=None):
            return _M_AcornLifeCycle.LifeCyclePrx.ice_checkedCast(proxy, '::AcornLifeCycle::LifeCycle', facetOrCtx, _ctx)
        checkedCast = staticmethod(checkedCast)

        def uncheckedCast(proxy, facet=None):
            return _M_AcornLifeCycle.LifeCyclePrx.ice_uncheckedCast(proxy, facet)
        uncheckedCast = staticmethod(uncheckedCast)

    _M_AcornLifeCycle._t_LifeCyclePrx = IcePy.defineProxy('::AcornLifeCycle::LifeCycle', LifeCyclePrx)

    _M_AcornLifeCycle._t_LifeCycle = IcePy.defineClass('::AcornLifeCycle::LifeCycle', LifeCycle, (), True, None, (), ())
    LifeCycle.ice_type = _M_AcornLifeCycle._t_LifeCycle

    LifeCycle._op_start = IcePy.Operation('start', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (), (), None, ())
    LifeCycle._op_stop = IcePy.Operation('stop', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (), (), None, ())
    LifeCycle._op_terminate = IcePy.Operation('terminate', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (), (), None, ())

    _M_AcornLifeCycle.LifeCycle = LifeCycle
    del LifeCycle

    _M_AcornLifeCycle.LifeCyclePrx = LifeCyclePrx
    del LifeCyclePrx

# End of module AcornLifeCycle
